<%--
  Created by IntelliJ IDEA.
  User: landeqing
  Date: 2017/12/19
  Time: 22:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<link href="../css/test.css" rel="stylesheet" type="text/css">
<html>
<head>
    <title>学生列表</title>

</head>
<body>
<table border="1" align="" id="table">
    <tr>
    <div>
<tr id="tr">
    <td id="td">ID</td>
    <td>学生姓名</td>
    <td>班级</td>
    <td>时间</td>
    <td>价格</td>
    <td>操作</td>
</tr>
<div>
<c:forEach items="${list}" var="obj">
    <tr>
    <td>${obj.id}</td>
    <td>${obj.name}</td>
    <td>${obj.className}</td>
        <td><spring:eval expression="obj.date"></spring:eval></td>
        <td><spring:eval expression="obj.money"></spring:eval></td>
        <td><a href="/student/getById?id=${obj.id}">查询</a></td>
    </tr><br>
</c:forEach>
</div>
    <th colspan="4"  class="pages">
        <div class="pages" align="foot">
            <c:if test="${pageNo>1}">
            <a href="/student/list?page=${pageNo-1}">上一页</a></span></c:if>
            <a href="/student/list?page=1">首页</a></span>
            <span style="border:none;">第${pageNo}页</span>
            <span id="strength_H">共${TotalPages}页</span>
            <c:if test="${pageNo<TotalPages}">
            <a  href="/student/list?page=${pageNo+1}">下一页</a></span>
            </c:if>
        </div>
    </th>
    </div>
    </tr>
</table>
</body>
</html>
